<?

require_once("mysql.php");

 
$r = MYSQL_Q("SELECT * FROM spam");

$result = array();

while ($row = mysql_fetch_assoc($r)) {
 
    array_push($result, $row);
}

echo json_encode($result, true);

?>
